<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/att.tld" prefix="att"%>
<html>
<head>
<meta name="decorator" content="moduleView" />
<script src="${staticPath}/lib/accounting/0.3.2/accounting.min.js"
	type="text/javascript"></script>
<script src="${staticPath}/lib/printPage/jquery.printPage.js"
	type="text/javascript"></script>
<script type="text/javascript">
function getUrl(url, iframeId) {
	var frame = $("#" + iframeId);
	if (!frame.attr("src")) {
		frame.attr("src", url);
	}
}
</script>
</head>
<body>
	<div class="Report_f">
		<div class="Report_f_1">
			<div class="Report_f_title_1">销售明细</div>
			<div class="tab-content Report_f_title_3">
				<div class="Report_f_title_5">
				<div class="o-l-action">
						<a class="btn btn-default btn-sm btn_5 pull-right" role="button"
							href="javascript:void(0)" onclick="history.go(-1)">返回</a> 
                         <a
					class="btn btn-warning btn-sm btn_5 pull-right" role="button"
					href="${contextPath}/biz/statement/pospaySaleSupplier/addError?shopNo=${bizStatementPospaySaleSupplier.shopNo}&barCode=${bizStatementPospaySaleSupplier.barCode}&saleDate=<fmt:formatDate value="${bizStatementPospaySaleSupplier.saleDate}" pattern="yyyy-MM-dd"/>"><span
					class="glyphicon glyphicon-exclamation-sign"></span>录入异常</a>
				</div>
				<div class="col-sm-2 leftbar_1">
						<ul class="nav Report_f_title_6">
							<li><a href="#label_1" data-toggle="tab">详细信息</a></li>
							 <li><a href="#label_2" data-toggle="tab"
								onclick="getUrl('${contextPath}/biz/statement/pospaySaleSupplierError/getErrorlist?shopNo=${bizStatementPospaySaleSupplier.shopNo}&barCode=${bizStatementPospaySaleSupplier.barCode}&saleDate=<fmt:formatDate value="${bizStatementPospaySaleSupplier.saleDate}" pattern="yyyy-MM-dd"/>','errorStatementPospaySaleSupplierFrame')">对账异常</a></li>
						</ul>
					</div>
					<form:form name="listForm" modelAttribute="bizStatementPospaySaleDetail"
						method="post" class="form-inline" role="form">
						<div class="tab-content Report_f_title_3">
							<div class="o-l-search-builder f_9">
								<table
									class="table table-striped table-hover o-l-table table-bordered"
									id="table1">
									<thead class="t_1">
										<tr>
											<th>商品条码</th>
											<th>商品名称</th>
											<th>销售数量</th>
											<th>销售单价</th>
											<th>折后价</th>
											<th>会员卡折扣</th>
											<th>促销折扣</th>
											<th>手工折扣</th>
											<th>其他折扣</th>
											<th>折扣金额</th>
											<th>赠送金额</th>
											<th>销售金额</th>
										</tr>
									</thead>
									<tbody>
										<c:forEach items="${page.list}" var="statementPospaySaleDetail"
											varStatus="i">
										 <tr data-herf=##
													"${contextPath}/statement/statementStock/${stock.id}/getByStockId" data-target="_self">
											<td>${statementPospaySaleDetail.barCode}</td>
											<td>${statementPospaySaleDetail.goodsName}</td>
											<td>${statementPospaySaleDetail.saleNum}</td>
											<td>${statementPospaySaleDetail.salePrice}</td>
											<td>${statementPospaySaleDetail.realPrice}</td>
											<td>${statementPospaySaleDetail.vipDisc}</td>
											<td>${statementPospaySaleDetail.promDisc}</td>
											<td>${statementPospaySaleDetail.manualDisc}</td>
											<td>${statementPospaySaleDetail.otherDisc}</td>
										    <td>${statementPospaySaleDetail.discAmount}</td>
										    <td>${statementPospaySaleDetail.giveAmount}</td>
										    <td>${statementPospaySaleDetail.saleAmount}</td>
										  </tr> 
										</c:forEach>
									</tbody>
								</table>
							</div>
							<pager:pager pageSize="${page.pageSize}" pageNo="${page.pageNo}"
								url="" total="${page.total}" />
							<script type="text/javascript" src="${staticPath}/js/list.js"></script>
						</div>
					</form:form>
					<div class="tab-pane" id="label_2">
							<iframe id="errorStatementPospaySaleSupplierFrame" name="errorStatementPospaySaleSupplierFrame"
								scrolling="no" frameborder="no" width="100%"></iframe>
					</div>
				</div>
			</div>
		</div>
		</div>
</body>
</html>